package ch.selise.exercise.pattern.notepad.command;

import java.util.Scanner;

public class GetCommandParameter {
	public String commandText;
	public Scanner in;
	public String text;
	public int index;
	//public IUndoableCommand lastUndoableCommand;

	public boolean scannerSupported;

	public boolean isScannerSupported() {
		return scannerSupported;
	}

	public GetCommandParameter(String commandText, Scanner in) {
		this.commandText = commandText;
		this.in = in;
		this.scannerSupported = true;
		//this.lastUndoableCommand = lastUndoableCommand;
		
	}

	public GetCommandParameter(String commandText, String text, int index) {
		this.commandText = commandText;
		this.text = text;
		this.index = index;
		this.scannerSupported = false;
		//this.lastUndoableCommand = lastUndoableCommand;

	}

	/*public GetCommandParameter(String commandText, String text) {
		this.commandText = commandText;
		this.text = text;
		this.scannerSupported = false;

	}*/
}